{template 'admin','header'}
<form action="{$self_url}?action=search" onsubmit="return r_submit(this);">
<table width="100%" cellpadding="0">
<tr>
	
	<td width="120"><strong>文件名:</strong>
	<input type="text" size="10" name="name" value="{$name}"></td>
	<td width="130"><strong>文件类型:</strong>{form::select($type_list,'ext','',$ext)}</td>
	<td width="210"><strong>上传日期:</strong>{date_tool('start',$start)}-{date_tool('end',$end)}</td>
	<td width="200"><strong>大小（KB）:</strong><input type="text" size="8" value="{$sizes}" name="sizes">-<input type="text" value="{$sizee}" size="8" name="sizee"></td>
	<td><input type="submit" value="搜索"></td>	
</tr>
</table>
</form>
<form name='form1' action="{$self_url}?action=delall" method="POST" onsubmit="return r_submit(this);">
<table class="table_list">
 <caption>附件管理列表</caption>
 <tr>
{if check_perms('att002')===true}
	 <th width="80" class="align_c"><input type="checkbox" onclick="checkall(this,'ck')" id="chkall">全选/取消</th>
{/if}
	 <th class="align_c">文件名</th>
	 <th class="align_c">大小</th>
	 <th class="align_c">站点</th>
	 <th class="align_c" width="150">上传时间</th>
 </tr>
 {loop $list $a}
 <tr>
{if check_perms('att002')===true}
 <td class="align_c"><input type="checkbox" id="ck" value="{$a['id']}" name="ck[]"></td>
{/if}
 <td>{$a['filename']}</td>
 <td class="align_c">{ceil($a['filesize']/1024)}（KB）</td>
 <td class="align_c">{$a['siteid']}</td>
 <td class="align_c">{date('Y-m-d H:i:s',$a['uploadtime'])}</td>
 </tr>
 {/loop}
</table>
<div class="button_box">
{if check_perms('att002')===true}
<input type="button" value="批量删除" onclick="if(confirm('确定要删除选中的附件？')){change_opt('form1','{$self_url}?action=delall');}" class="button_style">
{/if}
</div>
</form>

<div id="pages">
{$pages}
</div>
{template 'admin','footer'}